package structureType.decorator.stream;

public class MFile {
	private int size;
	private int maxSize;
	public void add(Object o){
		if(checkSize())
			size++;
		else
			System.out.println("Sorry... File is full");
	}
	private boolean checkSize(){
		if(size > maxSize-1)
			return false;
		return true;
	}
	public int getSize(){
		return this.size;
	}
}
